package backend.project.gym_management.pojo.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.*;

@Data
@ApiModel("添加用户参数")
public class StaffAddUserParam {
    @ApiModelProperty(value = "用户名", required = true)
    @NotBlank(message = "用户名不能为空")
    private String username;

    @ApiModelProperty(value = "账号", required = true)
    @Size(min = 5, message = "账号至少5位")
    private String account;

    @ApiModelProperty(value = "密码", required = true)
    @Size(min = 8, message = "密码至少8位")
    private String password;

    @ApiModelProperty(value = "性别", required = true)
    @NotBlank(message = "请选择性别")
    private String gender;

    @ApiModelProperty(value = "年龄", required = true)
    @NotNull(message = "请输入年龄")
    private Integer age;

    @ApiModelProperty(value = "头衔", required = true)
    @NotBlank(message = "请选择头衔")
    private String title;
}
